package yifeng;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Properties;

public class Init {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws FileNotFoundException 
	 */
	public static void main(String[] args) throws FileNotFoundException, IOException {
		Properties p = new Properties();
		p.load(new FileInputStream(Main.class.getResource("").getPath() + "/fffff"));
		
		for(String key : p.stringPropertyNames()){
			p.setProperty(key, "0");
		}
		
		OutputStream out = new FileOutputStream(Main.class.getResource("/").getPath() + ".." + "/src/yifeng/fffff");
		p.store(out, "yifeng");
		
		System.out.println("Init success!");
	}
}
